public class ParsingInput {

	private int input;

	public ParsingInput(int Input) {
	 input = Input;
	}

	public int getOffset(){
		int initial = input;
		int mask = 0x000000FF;
		int offset = mask & initial;
		
		String offsetString  = Integer.toBinaryString(offset);
		return offset;
		}
	
	public int getPageNumber(){
		int initial = input;
		int mask = 0x000000FF;
		int pageNumberInitial = (initial >> 8);
		int pageNumber = mask & pageNumberInitial;
		
		String pageNumberString  = Integer.toBinaryString(pageNumber);
		return pageNumber;
	}
}